home *** CD-ROM | disk | FTP | other *** search
- -- card: 3524 from stack: in.0
- -- bmap block id: 0
- -- flags: 4000
- -- background id: 2601
- -- name: Start
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=107 top=133 right=214 bottom=369
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Ready ?
- ----- HyperTalk script -----
- on mouseUp
-
- global StartTime
- global CorrectAnswers
- global WrongAnswers
- global MaxNumber
- global MaxResult
- global MaxTime
- global MaxProblems
-
- set the cursor to 4
- set the lockScreen to true
- put 0 into CorrectAnswers
- put 0 into WrongAnswers
-
- go card "Global Settings"
-
- get card field "MaxNumber"
- if it >20 or it <1 then
- put 20 into MaxNumber
- else
- put it into MaxNumber
- end if
- get card field "MaxResult"
- if it >20 or it <1 then
- put 20 into MaxResult
- else
- put it into MaxResult
- end if
- get card field "MaxTime"
- put it into MaxTime
- get card field "MaxProblems"
- put it into MaxProblems
-
- go card "Finish"
-
- repeat with l = 1 to number of lines of card field "checklist"
- delete line 1 of card field "checklist"
- end repeat
-
- go card "Problem"
- repeat with l = 1 to number of lines of card field "answerList"
- delete line 1 of card field "answerList"
- end repeat
-
- put " " into previous
- put " " into thisOne
- put MaxNumber into m
- add 1 to m
- repeat with l = 1 to MaxProblems
- repeat until thisOne <> previous
- put the random of m - 1 into firstNumber
- put MaxResult - firstNumber into it
-
- if it >0 then
- if it > MaxNumber then
- put MaxNumber into it
- end if
- put the random of it into secondNumber
- else
- put "0" into secondNumber
- end if
-
- put firstNumber && "+" && secondNumber into thisOne
- end repeat
-
- put thisOne into line l of card field ProblemList
- put thisOne into previous
- beep
- end repeat
- put 1 into card field "Problem Number"
- set the scroll of card field "ProblemList" to 0
- beep 4
- put the secs into StartTime
- end mouseUp
-
-
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=190 top=279 right=301 bottom=290
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: I'm Done!
- ----- HyperTalk script -----
- on mouseUp
- doMenu "Quit HyperCard"
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: A001
- -- rect: left=423 top=272 right=327 bottom=491
- -- title width / last selected line: 0
- -- icon id / first selected line: 32650 / 32650
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Dad's Button
- ----- HyperTalk script -----
- on mouseUp
- visual effect iris close to black
- visual effect iris open
- go to card id 3100
- end mouseUp
-
-
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: 2001
- -- rect: left=22 top=277 right=315 bottom=63
- -- title width / last selected line: 0
- -- icon id / first selected line: 21700 / 21700
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Home
- ----- HyperTalk script -----
- on mouseUp
- doMenu "Home"
- end mouseUp
-
-
-
- -- part 12 (field)
- -- low flags: 01
- -- high flags: 0001
- -- rect: left=107 top=120 right=226 bottom=371
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Copyright
- ----- HyperTalk script -----
- On MouseUp
- hide card field "Copyright"
- End MouseUp
-
-
-
- -- part 13 (button)
- -- low flags: 00
- -- high flags: 2001
- -- rect: left=442 top=37 right=73 bottom=483
- -- title width / last selected line: 0
- -- icon id / first selected line: 19678 / 19678
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- show card field "Copyright"
- end mouseUp
-
-
-
- -- part 14 (button)
- -- low flags: 00
- -- high flags: 2001
- -- rect: left=445 top=144 right=180 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 25002 / 25002
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- go to card id 3863
- end mouseUp
-
-
-
-
- -- part contents for card part 12
- ----- text -----
- Copyright 1988
- by
- Hans Kruse
- 775 Rodney Dr.
- Nashville, TN 37215